package com.kashow.bean.login;

import com.kashow.bean.BaseBean;

/**
 * Created by cg on 16/12/29.
 */

public class WeiXinBean extends BaseBean {

    /**
     * _id : 1
     * userName : testuser1
     * phone : 18000000000
     * wxUserInfo : {"openid":"testopenid1","nickname":"testnickname1","sex":1,"city":"杭州","province":"浙江","country":"中国","headimgurl":"http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0"}
     * authInfo : {"realName":"哈哈哈","cardNumber":"342921199208204515","cardPic1":"http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0","cardPic2":"http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0","status":3,"createdAt":"2016-09-30T03:50:02.836Z","updatedAt":"2016-10-31T03:50:02.328Z"}
     * createdAt : 2016-09-30T03:50:02.328Z
     * updatedAt : 2016-09-30T03:50:02.328Z
     * isTeacher : true
     * __v : 0
     * level : 2
     * balance : 4000
     * score : 4000
     * id : 1
     * isFollow : true
     */

    private int _id;
    private String userName;
    private String phone;
    private WxUserInfoEntity wxUserInfo;
    private AuthInfoEntity authInfo;
    private String createdAt;
    private String updatedAt;
    private boolean isTeacher;
    private int level;
    private int balance;
    private float score;
    private String id;
    private boolean isFollow;

    public void set_id(int _id) {
        this._id = _id;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setWxUserInfo(WxUserInfoEntity wxUserInfo) {
        this.wxUserInfo = wxUserInfo;
    }

    public void setAuthInfo(AuthInfoEntity authInfo) {
        this.authInfo = authInfo;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public void setIsTeacher(boolean isTeacher) {
        this.isTeacher = isTeacher;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setIsFollow(boolean isFollow) {
        this.isFollow = isFollow;
    }

    public int get_id() {
        return _id;
    }

    public String getUserName() {
        return userName;
    }

    public String getPhone() {
        return phone;
    }

    public WxUserInfoEntity getWxUserInfo() {
        return wxUserInfo;
    }

    public AuthInfoEntity getAuthInfo() {
        return authInfo;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public boolean getIsTeacher() {
        return isTeacher;
    }

    public int getLevel() {
        return level;
    }

    public int getBalance() {
        return balance;
    }

    public float getScore() {
        return score;
    }

    public String getId() {
        return id;
    }

    public boolean getIsFollow() {
        return isFollow;
    }

    public static class WxUserInfoEntity {
        /**
         * openid : testopenid1
         * nickname : testnickname1
         * sex : 1
         * city : 杭州
         * province : 浙江
         * country : 中国
         * headimgurl : http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0
         */

        private String openid;
        private String nickname;
        private int sex;
        private String city;
        private String province;
        private String country;
        private String headimgurl;

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public String getOpenid() {
            return openid;
        }

        public String getNickname() {
            return nickname;
        }

        public int getSex() {
            return sex;
        }

        public String getCity() {
            return city;
        }

        public String getProvince() {
            return province;
        }

        public String getCountry() {
            return country;
        }

        public String getHeadimgurl() {
            return headimgurl;
        }
    }

    public static class AuthInfoEntity {
        /**
         * realName : 哈哈哈
         * cardNumber : 342921199208204515
         * cardPic1 : http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0
         * cardPic2 : http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0
         * status : 3
         * createdAt : 2016-09-30T03:50:02.836Z
         * updatedAt : 2016-10-31T03:50:02.328Z
         */

        private String realName;
        private String cardNumber;
        private String cardPic1;
        private String cardPic2;
        private int status;
        private String createdAt;
        private String updatedAt;

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public void setCardNumber(String cardNumber) {
            this.cardNumber = cardNumber;
        }

        public void setCardPic1(String cardPic1) {
            this.cardPic1 = cardPic1;
        }

        public void setCardPic2(String cardPic2) {
            this.cardPic2 = cardPic2;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public void setUpdatedAt(String updatedAt) {
            this.updatedAt = updatedAt;
        }

        public String getRealName() {
            return realName;
        }

        public String getCardNumber() {
            return cardNumber;
        }

        public String getCardPic1() {
            return cardPic1;
        }

        public String getCardPic2() {
            return cardPic2;
        }

        public int getStatus() {
            return status;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public String getUpdatedAt() {
            return updatedAt;
        }
    }
}
